<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app"></div>
<script src="../packages/reactivity/dist/reactivity.global.js"></script>
<script type="module">

    let {
        reactive,
        shallowReactive,
        readonly,
        shallowReadonly, effect, ref, toRefs, computed
    } = VueReactivetiy

    let  age = ref(10)

    let myAge = computed(() => {
        console.log("缓存")
        return age.value + 20
    })



    setTimeout(() => {
        age.value = 1000
        console.log(myAge.value)
    }, 1000);
    
    
</script>
</body>
</html>